package com.linwen.javase.desgin_pattern.BigTalkDesignPattenJAVACode._03装饰模式._5商品价格策略工厂;

/**
 * @ClassName CashRebate
 * @Description TODO
 * @Author zero
 * @DATE 2023/7/10 10:50 PM
 * @Version 1.0
 */
public class CashRebate extends CashSuper {
    private double v;

    public CashRebate(double v) {
        this.v = v;
    }

    @Override
    public double acceptCash(double price, int num) {
        return price * num * v;
    }
}
